﻿@using CodeCamp.Models.Shared
@model CodeCamp.Models.Presenters.PresenterDetailsInsiderFormInfo

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div>
        @Html.HiddenFor(model => model.PresenterId)
        <table>
            @if (User.IsInRole(CCRoles.RoleNames.BigCheeze))
            {
            <tr>
                <td>
                @Html.LabelFor(model => model.ShowAdvancedPresenterDetails, "Show Advanced Presenter Details")
                @Html.EditorFor(model => model.ShowAdvancedPresenterDetails)
                @Html.ValidationMessageFor(model => model.ShowAdvancedPresenterDetails)
                </td>
            </tr>
            }
            <tr>
                <td>
                @Html.LabelFor(model => model.ShowEmailSentToPresenter, "Show Email Sent To Presenter")
                @Html.EditorFor(model => model.ShowEmailSentToPresenter)
                @Html.ValidationMessageFor(model => model.ShowEmailSentToPresenter)
                </td>
            </tr>
            <tr>
                <td>
                @Html.LabelFor(model => model.IncludeEmailToSiteUser, "Include Email Sent To Presenter re this CC")
                @Html.EditorFor(model => model.IncludeEmailToSiteUser)
                @Html.ValidationMessageFor(model => model.IncludeEmailToSiteUser)
                <input type="submit" value="Refresh" />
                </td>
            </tr>
        </table>

    </div>
    @Html.HiddenFor(model => model.UTCOffsetMinutes)

<script type="text/jscript" language="javascript">
    ourDate = new Date
    var uom = document.getElementById("UTCOffsetMinutes");
    if (uom != null) {
        uom.value = ourDate.getTimezoneOffset();
    }
</script>    
}
